<template>
    <div class="location bd-top">
      <div class="location-item bd-right">
        <span class="iconfont">&#xe63f;</span> {{ city }}
      </div>
      <div class="location-item">
        <span class="iconfont">&#xe76c;</span> 必游榜单
      </div>
    </div>
</template>

<script>
  import { mapState } from "vuex"
    export default {
       computed:{
         ...mapState(["city"])
       },
        name: "Location"
    }
</script>

<style scoped>
  .location{
    background: #ffffff;
    line-height: .98rem;
    font-size: .28rem;
    display: flex;
    position: relative;
  }
  .location-item{
    flex: 1;
    text-align: center;
    color: #212121;
  }
</style>
